<form action="<?php echo $aUrl; ?>" method="post" name="adminForm">
<div id="config-document">

	<!-- start page-site -->
	<div id="page-site">
	<table class="noshow">
		<tr>
			<td width="65%">
			<fieldset class="adminform">
			<legend>基本信息</legend>
			<table class="admintable" cellspacing="1">
			<tbody>
				<tr>
					<td class="key">
						<span class="editlinktip hasTip" title="网站名称::输入该网站的名称。这个名称将会在不同地方使用，例如访问后台时浏览器的标题栏中以及网站关闭时显示的页面中。">网站名称</span>
					</td>
					<td>
						<input type="text" name="options[site_name]" class="text_area" size="50" value="<?php echo $options['site_name']; ?>" />
					</td>
				</tr>
				<tr>
					<td class="key">
						<span class="editlinktip hasTip" title="网站URL::">网站URL</span>
					</td>
					<td>
						<input type="text" name="options[site_url]" class="text_area" size="50" value="<?php echo $options['site_url']; ?>" />
					</td>
				</tr>
				<tr>
					<td class="key">
						<span class="editlinktip hasTip" title="模板名称::">模板名称</span>
					</td>
					<td>
						<input type="text" name="options[tpl_dir]" class="text_area" size="50" value="<?php echo $options['tpl_dir']; ?>" />
					</td>
				</tr>
				<tr>
					<td class="key">
						<span class="editlinktip hasTip" title="生成静态页面存放目录名称::">生成静态页面存放目录名称</span>
					</td>
					<td>
						<input type="text" name="options[html_dir]" class="text_area" size="50" value="<?php echo $options['html_dir']; ?>" />
					</td>
				</tr>
				<tr>
					<td class="key">
						<span class="editlinktip hasTip" title="SEO Title (meta_title)::">SEO Title</span>
					</td>
					<td>
						<input type="text" name="options[meta_title]" class="text_area" size="50" value="<?php echo $options['meta_title']; ?>" />
					</td>
				</tr>
				<tr>
					<td class="key">
						<span class="editlinktip hasTip" title="SEO Keywords (meta_keywords)::">SEO Keywords</span>
					</td>
					<td>
						<input type="text" name="options[meta_keywords]" class="text_area" size="50" value="<?php echo $options['meta_keywords']; ?>" />
					</td>
				</tr>
				<tr>
					<td class="key">
						<span class="editlinktip hasTip" title="SEO Description (meta_description)::">SEO Description</span>
					</td>
					<td>
						<input type="text" name="options[meta_description]" class="text_area" size="50" value="<?php echo $options['meta_description']; ?>" />
					</td>
				</tr>
				<tr>
					<td class="key">
						<span class="editlinktip hasTip" title="网站版权信息::">网站版权信息</span>
					</td>
					<td>
						<input type="text" name="options[powerby]" class="text_area" size="50" value="<?php echo $options['powerby']; ?>" />
					</td>
				</tr>
				<tr>
					<td class="key">
						<span class="editlinktip hasTip" title="网站第三方统计代码::">网站第三方统计代码</span>
					</td>
					<td>
						<textarea name="options[stat_code]" class="text_area" style="width:400px; height:50px" cols="50" rows="3"><?php echo $options['stat_code']; ?></textarea>
					</td>
				</tr>
				<tr>
					<td width="185" class="key">
						<span class="editlinktip hasTip" title="使用Apache的重写模式：<em>mod_rewrite</em>::选择是否使用APACHE重写模式来获取URLS，以满足特定条件和重写他们">
							使用Apache的重写模式：<em>mod_rewrite</em>
						</span>
					</td>
					<td>
						<input type="radio" name="options[sef_rewrite]" class="inputbox" value="n" <?php if ($options['sef_rewrite'] != 'y') echo 'checked'; ?> />
						<label for="sef_rewrite0">否</label>
						<input type="radio" name="options[sef_rewrite]" class="inputbox" value="y" <?php if ($options['sef_rewrite'] == 'y') echo 'checked'; ?> />
						<label for="sef_rewrite1">是</label>
						<span class="error hasTip" title="警示！::只能在Apache上使用！使用前先将文件“htaccess.txt”更名为“.htaccess”。">
							<img src="<?php echo $adminPath; ?>/images/ThemeOffice/warning.png" border="0"  alt="" />				
						</span>
					</td>
				</tr>
			</tbody>
			</table>
			</fieldset>

			<fieldset class="adminform">
			<legend>注册</legend>
			<table class="admintable" cellspacing="1">
			<tbody>
				<tr>
					<td valign="top" class="key">
						<span class="editlinktip hasTip" title="允许新用户注册::">允许新用户注册</span>
					</td>
					<td>
						<input type="radio" name="options[reg_status]" class="inputbox" value="0" <?php if ($options['reg_status'] == '0') echo 'checked'; ?> />
						<label for="regstatus0">关闭注册</label>
						<input type="radio" name="options[reg_status]" class="inputbox" value="1" <?php if ($options['reg_status'] == '1') echo 'checked'; ?> />
						<label for="regstatus1">只开放普通注册</label>
						<input type="radio" name="options[reg_status]" class="inputbox" value="2" <?php if ($options['reg_status'] == '2') echo 'checked'; ?> />
						<label for="regstatus2">只开放邀请注册</label>
						<input type="radio" name="options[reg_status]" class="inputbox" value="3" <?php if ($options['reg_status'] == '3') echo 'checked'; ?> />
						<label for="regstatus3">注册需要Email验证</label>
					</td>
				</tr>
				<tr>
					<td class="key">
						<span class="editlinktip hasTip" title="关闭注册原因::">关闭注册原因</span>
					</td>
					<td>
						<textarea name="options[reg_close_reason]" class="text_area" style="width:400px; height:50px" cols="50" rows="3"><?php echo $options['reg_close_reason']; ?></textarea>
					</td>
				</tr>
				<tr>
					<td valign="top" class="key">
						<span class="editlinktip hasTip" title="显示网站服务条款::">显示网站服务条款</span>
					</td>
					<td>
						<input type="radio" name="options[rules_is_show]" class="inputbox" value="n" <?php if ($options['rules_is_show'] == 'n') echo 'checked'; ?> />
						<label for="rules_is_show0">否</label>
						<input type="radio" name="options[rules_is_show]" class="inputbox" value="y" <?php if ($options['rules_is_show'] != 'n') echo 'checked'; ?> />
						<label for="rules_is_show1">是</label>
					</td>
				</tr>
				<tr>
					<td class="key">
						<span class="editlinktip hasTip" title="用户信息保留关键字::">用户信息保留关键字</span>
					</td>
					<td>
						<textarea name="options[censor_user]" class="text_area" style="width:400px; height:50px" cols="50" rows="3"><?php echo $options['censor_user']; ?></textarea>
					</td>
				</tr>
				<tr>
					<td class="key">
						<span class="editlinktip hasTip" title="邮件提示主题::">邮件提示主题</span>
					</td>
					<td>
						<textarea name="options[reg_email_subject]" class="text_area" style="width:400px; height:50px" cols="50" rows="3"><?php echo $options['reg_email_subject']; ?></textarea>
					</td>
				</tr>
				<tr>
					<td class="key">
						<span class="editlinktip hasTip" title="Email验证限时::">Email验证限时(单位:小时)</span>
					</td>
					<td>
						<input type="text" name="options[reg_email_timeout]" class="text_area" size="50" value="<?php echo $options['reg_email_timeout']; ?>" />
					</td>
				</tr>
				<tr>
					<td class="key">
						<span class="editlinktip hasTip" title="邀请验证限时::">邀请验证限时(单位:小时)</span>
					</td>
					<td>
						<input type="text" name="options[reg_invite_timeout]" class="text_area" size="50" value="<?php echo $options['reg_invite_timeout']; ?>" />
					</td>
				</tr>
				</tbody>
			</table>
			</fieldset>
			</td>
			
			<td width="35%">
			<fieldset class="adminform">
			<legend>图片管理</legend>
			<table class="admintable" cellspacing="1">
			<tbody>
				<tr>
					<td width="185" class="key">
						<span class="editlinktip hasTip" title="信息缩略图规格::">信息缩略图规格</span>
					</td>
					<td>
						<input type="text" name="options[thumb_width]" class="text_area" size="6" value="<?php echo $options['thumb_width']; ?>" />	
						<label for="thumb_width">宽&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;</label>
						<input type="text" name="options[thumb_height]" class="text_area" size="6" value="<?php echo $options['thumb_height']; ?>" />	
						<label for="thumb_height">高</label>
					</td>
				</tr>
				<tr>
					<td valign="top" class="key">
						<span class="editlinktip hasTip" title="图片添加水印::">图片添加水印</span>
					</td>
					<td>
						<input type="radio" name="options[water_mark_status]" class="inputbox" value="0" <?php if ($options['water_mark_status'] == '0') echo 'checked'; ?> />
						<label for="rules_is_show0">只添加文字水印</label>
						<input type="radio" name="options[water_mark_status]" class="inputbox" value="1" <?php if ($options['water_mark_status'] == '1') echo 'checked'; ?> />
						<label for="rules_is_show1">只添加图片水印</label>
						<input type="radio" name="options[water_mark_status]" class="inputbox" value="2" <?php if ($options['water_mark_status'] == '2') echo 'checked'; ?> />
						<label for="rules_is_show2">不添加</label>
					</td>
				</tr>
				<tr>
					<td class="key">
						<span class="editlinktip hasTip" title="水印图片文件地址::">水印图片文件地址</span>
					</td>
					<td>
						<input type="text" name="options[water_mark_dir]" class="text_area" size="30" value="<?php echo $options['water_mark_dir']; ?>" />
					</td>
				</tr>
				<tr>
					<td class="key">
						<span class="editlinktip hasTip" title="水印文字信息::">水印文字信息</span>
					</td>
					<td>
						<input type="text" name="options[water_mark_text]" class="text_area" size="30" value="<?php echo $options['water_mark_text']; ?>" />
					</td>
				</tr>
				<tr>
					<td class="key">
						<span class="editlinktip hasTip" title="水印放置位置::">水印放置位置</span>
					</td>
					<td>
						<table class="admintable" cellspacing="1">
						<tbody>
							<tr>
								<td><input type="radio" name="options[water_mark_position]" class="inputbox" value="1" <?php if ($options['water_mark_position'] == '1') echo 'checked'; ?> />#1</td>
								<td><input type="radio" name="options[water_mark_position]" class="inputbox" value="2" <?php if ($options['water_mark_position'] == '2') echo 'checked'; ?> />#2</td>
								<td><input type="radio" name="options[water_mark_position]" class="inputbox" value="3" <?php if ($options['water_mark_position'] == '3') echo 'checked'; ?> />#3</td>
							</tr>
							<tr>
								<td><input type="radio" name="options[water_mark_position]" class="inputbox" value="4" <?php if ($options['water_mark_position'] == '4') echo 'checked'; ?> />#4</td>
								<td><input type="radio" name="options[water_mark_position]" class="inputbox" value="5" <?php if ($options['water_mark_position'] == '5') echo 'checked'; ?> />#5</td>
								<td><input type="radio" name="options[water_mark_position]" class="inputbox" value="6" <?php if ($options['water_mark_position'] == '6') echo 'checked'; ?> />#6</td>
							</tr>
							<tr>
								<td><input type="radio" name="options[water_mark_position]" class="inputbox" value="7" <?php if ($options['water_mark_position'] == '7') echo 'checked'; ?> />#7</td>
								<td><input type="radio" name="options[water_mark_position]" class="inputbox" value="8" <?php if ($options['water_mark_position'] == '8') echo 'checked'; ?> />#8</td>
								<td><input type="radio" name="options[water_mark_position]" class="inputbox" value="9" <?php if ($options['water_mark_position'] == '9') echo 'checked'; ?> />#9</td>
							</tr>
						</tbody>
						</table>
					</td>
				</tr>
				<tr>
					<td class="key">
						<span class="editlinktip hasTip" title="水印融合度::">水印融合度</span>
					</td>
					<td>
						<input type="text" name="options[water_mark_pct]" class="text_area" size="30" value="<?php echo $options['water_mark_pct']; ?>" />
					</td>
				</tr>
			</tbody>
			</table>
			</fieldset>
			</td>
		</tr>
	</table>
	</div>
	<!-- end page-site -->
	
	<!-- start page-system -->
	<div id="page-system" style="display:none">
	<table class="noshow">
		<tr>
			<td width="60%">
			<fieldset class="adminform">
			<legend>邮件设置</legend>
			<table class="admintable" cellspacing="1">
			<tbody>
				<tr>
					<td valign="top" class="key">
						<span class="editlinktip hasTip" title="SMTP服务器::">SMTP服务器</span>
					</td>
					<td>
						<input type="text" name="options[smtp_host]" class="text_area" size="50" value="<?php echo $options['smtp_host']; ?>" />
					</td>
				</tr>
				<tr>
					<td valign="top" class="key">
						<span class="editlinktip hasTip" title="SMTP服务器端口::">SMTP服务器端口</span>
					</td>
					<td>
						<input type="text" name="options[smtp_port]" class="text_area" size="50" value="<?php echo $options['smtp_port']; ?>" />
					</td>
				</tr>
				<tr>
					<td valign="top" class="key">
						<span class="editlinktip hasTip" title="SMTP服务器的账号::">SMTP服务器的账号</span>
					</td>
					<td>
						<input type="text" name="options[smtp_username]" class="text_area" size="50" value="<?php echo $options['smtp_username']; ?>" />
					</td>
				</tr>
				<tr>
					<td valign="top" class="key">
						<span class="editlinktip hasTip" title="SMTP服务器的密码::">SMTP服务器的密码</span>
					</td>
					<td>
						<input type="text" name="options[smtp_password]" class="text_area" size="50" value="<?php echo $options['smtp_password']; ?>" />
					</td>
				</tr>
				<tr>
					<td valign="top" class="key">
						<span class="editlinktip hasTip" title="管理员邮箱::">管理员邮箱</span>
					</td>
					<td>
						<input type="text" name="options[from_email]" class="text_area" size="50" value="<?php echo $options['from_email']; ?>" />
					</td>
				</tr>
			</tbody>
			</table>
			</fieldset>
			</td>
		
			<td width="40%">
			<fieldset class="adminform">
			<legend>分页配置</legend>
			<table class="admintable" cellspacing="1">
			<tbody>
				<tr>
					<td class="key">
						<span class="editlinktip hasTip" title="每页显示页码数::">每页显示页码数</span>
					</td>
					<td>
						<input type="text" name="options[page_pages]" class="text_area" size="10" value="<?php echo $options['page_pages']; ?>" />
					</td>
				</tr>
				<tr>
					<td class="key">
						<span class="editlinktip hasTip" title="文档列表每页显示条数::">文档列表每页显示条数</span>
					</td>
					<td>
						<input type="text" name="options[page_results_posts]" class="text_area" size="10" value="<?php echo $options['page_results_posts']; ?>" />
					</td>
				</tr>
				<tr>
					<td class="key">
						<span class="editlinktip hasTip" title="用户列表每页显示条数::">用户列表每页显示条数</span>
					</td>
					<td>
						<input type="text" name="options[page_results_users]" class="text_area" size="10" value="<?php echo $options['page_results_users']; ?>" />
					</td>
				</tr>
			</tbody>
			</table>
			</fieldset>
			</td>
		</tr>
	</table>
	</div>
	<!-- end page-system -->

</div>
<input type="hidden" name="do" value="" /> 
<div class="clr"></div>	
</form>